package com.rati.usercenter.common;

/**
 * 查询类型
 */
public enum SelectType {

    /*部分匹配即可返回*/
    PARTIAL_MATCH(1),

    /*必须全部匹配才能返回*/
    ALL_MATCH(2)
    ;

    final int num;

    SelectType(int num) {
        this.num = num;
    }

    public int getNum() {
        return num;
    }

    public static SelectType valueOf(int i) {
        switch (i) {
            case 1:
                return PARTIAL_MATCH;
            case 2:
                return ALL_MATCH;
            default:
                return null;
        }
    }
}
